package com.ask.forMe.langchain4j.model.entity;

import lombok.Data;

import java.util.List;

// 文档分块类
@Data
public class Section {
    String content;          // 分块内容1
    int level;               // 标题级别
    List<String> titlePath;  // 完整标题路径

    public Section(String content, int level) {
        this.content = content;
        this.level = level;
    }

    public Section(String content, int level, List<String> titlePath) {
        this.content = content;
        this.level = level;
        this.titlePath = titlePath;
    }
}
